package com.zimin.cloud.user.controller.api;


import com.zimin.cloud.mine.pojo.user.business.UserMomentsBO;
import com.zimin.shared.pojo.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * <p>
 * 用户动态表 前端控制器 接口
 * </p>
 *
 * @author zimin
 * @since 2022-06-14 15:53
 */
@RequestMapping
public interface IUserMomentsController {


    /**
     * <p>新增用户动态</p>
     *
     *
     * @param userMomentsBO 用户动态对象
     * @since 2022-06-30 21:01:56
     */
    @PostMapping("/user-moments")
    Result addUserMoments(@RequestBody UserMomentsBO userMomentsBO) throws Exception;

    /**
     * <p>获取用户的订阅动态</p>
     *
     * @return com.zimin.shared.pojo.Result
     * @since 2022-06-30 21:24:49
     */
    @GetMapping("/user-subscribed-moments")
    Result getUserSubscribedMoments();


}
